package IoC;

public class Bottom {
    private Tire tire;
    public Bottom(Tire tire) {
        //构造地盘。需要依赖轮胎
        this.tire = tire;
    }
    public void init() {
        System.out.println("底盘启动，需要依赖车轮");
        tire.init();
    }
}
